public class Demo {
    public static void main(String[] args) {

        student model  = retrievestudentFromDatabase();

        View view = new View();

        Controller controller = new Controller(model, view);

        controller.updateView();

        controller.setStudentName("TTao");

        controller.updateView();

    }

    private static student retrievestudentFromDatabase(){
        student student = new student();
        student.setName("xyw");
        student.setId("2022212994");
        student.setGender('男');
        return student;
    }
}